package com.app.miwawa.api.esm.entity.view;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.framework.common.api.entity.CommonEntityUUID;
import org.framework.common.api.support.annotation.Search;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 合同信息视图
 * <p>描述: </p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年2月4日 下午10:40:10
 * @version 1.0.2016
 */
@Entity @Table(name = "vb_contract")
public class ContractView extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = 2656819726592746535L;

	private String customerid;
	// student
	private String studentid;
	
	@Search
	private String student;
	
	@Search
	private String nickname;
	
	@Temporal(TemporalType.DATE)
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date birthday;
	
	private Integer moonage;
	
	// parent
	private String parentid;
	
	@Search
	private String parent;
	
	@Search
	private String mobile;
	
	private String relation;
	
	// contract
	@Temporal(TemporalType.DATE)
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date createDate;
	
	@Temporal(TemporalType.DATE)
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date fromDate;
	
	@Temporal(TemporalType.DATE)
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date overDate;
	
	@Search
	private String validity;
	
	private String code;
	
	private String item;
	
	private String remark;
	
	private String type;
	
	// buinfo
	private String buyitem;
	
	private String totals;
	
	private String buying;
	
	private String giving;
	
	private String useing;
	
	private String rested;
	
	private String totalsPrice;
	
	private String useingPrice;
	
	private String restedPrice;
	
	private String invoice;
	
	private String title;
	
	private String payid;
	
	private Integer classes;
	
	// adviser
	private String userid;
	
	@Search
	private String username;

	public String getCustomerid() {
		return customerid;
	}

	public void setCustomerid(String customerid) {
		this.customerid = customerid;
	}

	public String getStudentid() {
		return studentid;
	}

	public void setStudentid(String studentid) {
		this.studentid = studentid;
	}

	public String getStudent() {
		return student;
	}

	public void setStudent(String student) {
		this.student = student;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Integer getMoonage() {
		return moonage;
	}

	public void setMoonage(Integer moonage) {
		this.moonage = moonage;
	}

	public String getParentid() {
		return parentid;
	}

	public void setParentid(String parentid) {
		this.parentid = parentid;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	
	public Date getFromDate() {
		return fromDate;
	}

	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}

	public Date getOverDate() {
		return overDate;
	}

	public void setOverDate(Date overDate) {
		this.overDate = overDate;
	}

	public String getValidity() {
		return validity;
	}

	public void setValidity(String validity) {
		this.validity = validity;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}
	
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getBuyitem() {
		return buyitem;
	}

	public void setBuyitem(String buyitem) {
		this.buyitem = buyitem;
	}

	public String getTotals() {
		return totals;
	}

	public void setTotals(String totals) {
		this.totals = totals;
	}

	public String getBuying() {
		return buying;
	}

	public void setBuying(String buying) {
		this.buying = buying;
	}

	public String getGiving() {
		return giving;
	}

	public void setGiving(String giving) {
		this.giving = giving;
	}

	public String getUseing() {
		return useing;
	}

	public void setUseing(String useing) {
		this.useing = useing;
	}

	public String getRested() {
		return rested;
	}

	public void setRested(String rested) {
		this.rested = rested;
	}

	public String getTotalsPrice() {
		return totalsPrice;
	}

	public void setTotalsPrice(String totalsPrice) {
		this.totalsPrice = totalsPrice;
	}

	public String getUseingPrice() {
		return useingPrice;
	}

	public void setUseingPrice(String useingPrice) {
		this.useingPrice = useingPrice;
	}

	public String getRestedPrice() {
		return restedPrice;
	}

	public void setRestedPrice(String restedPrice) {
		this.restedPrice = restedPrice;
	}

	public String getInvoice() {
		return invoice;
	}

	public void setInvoice(String invoice) {
		this.invoice = invoice;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPayid() {
		return payid;
	}

	public void setPayid(String payid) {
		this.payid = payid;
	}
	
	public Integer getClasses() {
		return classes;
	}

	public void setClasses(Integer classes) {
		this.classes = classes;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
}
